// 根级别的 mutation

import * as types from './mutations-type.js'

const mutations = {
  [types.USER_ID](state, user_id) {
    state.user_id = user_id
  },
  [types.IS_INIT](state, is_init) {
    state.is_init = is_init
  },
  [types.STUDENT_ID](state, student_id) {
    state.student_id = student_id
  },
  [types.STUDENT](state, student) {
    state.student = student
  }
}

export default mutations
